package com.qdsgjsfk.vision.ui.widget;

import android.content.Context;
import android.hardware.Camera;
import android.view.SurfaceHolder;
import android.view.SurfaceView;

/**
 * Created by HP on 2019/12/27.
 */

public class CameraView extends SurfaceView implements SurfaceHolder.Callback {

    public CameraView(Context context) {
        super(context);
        Camera camera = null;
        try {
            camera = Camera.open();
        }
        catch (Exception e){

        }
    }

    @Override
    public void surfaceCreated(SurfaceHolder holder) {

    }

    @Override
    public void surfaceChanged(SurfaceHolder holder, int format, int width, int height) {

    }

    @Override
    public void surfaceDestroyed(SurfaceHolder holder) {

    }
}
